package at.fhooe.mcm12.swa.ex3.db;

import java.util.Vector;

import at.fhooe.mcm12.swa.ex3.model.Runner;

/**
 * The Interface DBConnection.
 */
public interface DBConnection {
	
	/**
	 * Checks if is connected.
	 *
	 * @return true, if is connected
	 */
	public abstract boolean isConnected();

	/**
	 * Open.
	 *
	 * @return true, if successful
	 */
	public abstract boolean open();

	/**
	 * Close.
	 *
	 * @return true, if successful
	 */
	public abstract boolean close();

	/**
	 * Gets the data.
	 *
	 * @return the data
	 */
	public abstract Vector<Runner> getData();

}
